<?php

use Illuminate\Database\Seeder;

class ArticleSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        // 清空文章表
        \App\Models\Article::truncate();
        // 使用工厂创建100条数据
        factory(\App\Models\Article::class, 100)->create();
    }
}
